<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多列布局案例</title>
    <style>
        .box {
            column-count: 5;
            column-fill: auto;
            height: 680px;
            margin: auto;
            column-rule: 1px gray solid;
        }
        .box div{
            /*里面的盒子作为整体 不能分成两列展示*/
            break-inside: avoid;
        }
    </style>
</head>

<body>
    <div class="box">
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
        <div><img src="img/bggd.png" alt=""><p>赵谦孙俪</p></div>
    </div>
</body>

</html>